package com.jwlifer.couchbase.test;

import com.jwlifer.dao.domain.JwliferAdmin;
import org.springframework.beans.factory.annotation.Autowired;

import com.jwlifer.service.jwliferCacheService;

public class CouchProducer {

	@Autowired
	jwliferCacheService jwliferCacheService;
	
	CouchProducer(){
		JwliferAdmin admin = new JwliferAdmin();
		admin.setUserName("jerry");
		admin.setEmail("jwei.fairy@gmail.com");
		admin.setPhone("18510029863");
		if(jwliferCacheService == null)
			System.out.println("service is null");
		jwliferCacheService.cacheJwliferAdmin("admin", admin);
		System.out.println("Producer: " + admin.getUserName() + " " + admin.getEmail());
	}
	
	public static void main(String[] args) {
	}
}
